/**
 * Created by Lizhilin on 2016/8/12/012.
 */
/**
 * @Description farm页面
 * @update 2016-08-18
 */
define(function (require, exports, modules){
    'use strict';
    var Base = require('base/controller.base'),
        View = require('./view.farm.js');

    var controller = function () {
        if(arguments[0].baseController.attributes.base){
            arguments[0].baseController.get('base').render();
        }else{
            new Base(arguments[0]);
        }
        var view = new View();
        arguments[0].baseController.set('view' , view);
    };

    return controller;
});